/* ===== 全局样式 ===== */
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #7f8c8d;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f9f9f9;
    scroll-behavior: smooth;
  }
  
  .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
  }
  
  /* ===== 导航栏 ===== */
  #navbar {
    background-color: var(--secondary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    padding: 10px 0;
  }
  
  #navbar ul {
    display: flex;
    justify-content: center;
    list-style-type: none;
    flex-wrap: wrap;
    gap: 5px;
    padding: 0 10px;
  }
  
  #navbar li {
    margin: 0;
  }
  
  #navbar a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    white-space: nowrap;
  }
  
  #navbar a i {
    margin-right: 5px;
    font-size: 0.9rem;
  }
  
  #navbar a:hover {
    background-color: var(--primary-color);
  }
  
  #navbar a.active {
    background-color: var(--accent-color);
  }
  
  /* ===== 头部区域 ===== */
  header {
    text-align: center;
    padding: 60px 20px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
  }
  
  header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path fill="rgba(255,255,255,0.05)" d="M0,0 L100,0 L100,100 L0,100 Z" /></svg>');
    background-size: cover;
    opacity: 0.1;
  }
  
  .profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: var(--shadow);
    margin-bottom: 15px;
    transition: var(--transition);
  }
  
  .profile-img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  }
  
  header h1 {
    font-size: 2rem;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  }
  
  .title {
    font-size: 1.1rem;
    margin-bottom: 15px;
    opacity: 0.9;
  }
  
  .contact-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    font-size: 0.9rem;
  }
  
  .contact-info p {
    display: flex;
    align-items: center;
    margin: 0;
  }
  
  .contact-info i {
    margin-right: 8px;
  }
  
  .contact-info a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
  }
  
  .contact-info a:hover {
    color: var(--light-color);
    text-decoration: underline;
  }
  
  /* ===== 内容区块 ===== */
  .section {
    background-color: white;
    margin-bottom: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
  }
  
  .section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }
  
  .section h2 {
    color: white;
    background-color: var(--primary-color);
    padding: 12px 20px;
    margin: 0;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
  }
  
  .section h2:hover {
    background-color: var(--secondary-color);
  }
  
  .section h2 i {
    margin-right: 10px;
    font-size: 1.1em;
  }
  
  .content {
    padding: 20px;
  }
  
  /* ===== 教育背景 ===== */
  .education-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
  }
  
  .education-item:last-child {
    border-bottom: none;
  }
  
  .education-item h3 {
    color: var(--secondary-color);
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: 1rem;
  }
  
  .date {
    color: var(--text-light);
    font-weight: normal;
    font-size: 0.9em;
  }
  
  .major {
    font-size: 0.9rem;
    margin-bottom: 10px;
  }
  
  .courses {
    margin-top: 10px;
  }
  
  .courses p {
    font-weight: bold;
    margin-bottom: 5px;
  }
  
  .courses ul {
    list-style-type: disc;
    padding-left: 20px;
    font-size: 0.9rem;
  }
  
  .courses li {
    margin-bottom: 5px;
  }
  
  /* ===== 技能专长 ===== */
  .skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
  }
  
  .skill-category {
    background-color: var(--light-color);
    padding: 12px;
    border-radius: 6px;
  }
  
  .skill-category h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--primary-color);
    font-size: 0.95rem;
  }
  
  .skill-category ul {
    list-style-type: none;
    font-size: 0.9rem;
  }
  
  .skill-category li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
  }
  
  .skill-category li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
  }
  
  .skill-level {
    color: var(--accent-color);
    font-size: 0.9em;
  }
  
  /* ===== 项目经验 ===== */
  .project-item {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #ddd;
  }
  
  .project-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }
  
  .project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
  }
  
  .project-header h3 {
    color: var(--secondary-color);
    font-size: 1rem;
  }
  
  .project-date {
    background-color: var(--primary-color);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75em;
  }
  
  .project-description {
    margin-bottom: 10px;
    font-size: 0.9rem;
  }
  
  .project-role {
    font-weight: bold;
    margin: 10px 0 5px;
    font-size: 0.9rem;
  }
  
  .project-tech {
    margin: 10px 0;
    font-size: 0.9rem;
  }
  
  .project-achievement {
    margin-bottom: 10px;
    font-size: 0.9rem;
  }
  
  .project-item ul {
    padding-left: 20px;
    margin-bottom: 10px;
  }
  
  .project-item li {
    margin-bottom: 5px;
    font-size: 0.9rem;
  }
  
  /* ===== 获奖情况 ===== */
  .awards-list {
    list-style-type: none;
  }
  
  .awards-list li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    font-size: 0.9rem;
  }
  
  .awards-list li::before {
    content: "🏆";
    position: absolute;
    left: 0;
  }
  
  .award-name {
    font-weight: bold;
    color: var(--secondary-color);
    display: block;
    margin-bottom: 3px;
  }
  
  .award-date {
    color: var(--text-light);
    font-size: 0.85em;
  }
  
  .award-desc {
    margin-top: 5px;
    color: var(--text-color);
  }
  
  /* ===== 自我评价 ===== */
  .self-evaluation {
    list-style-type: none;
  }
  
  .self-evaluation li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    font-size: 0.9rem;
  }
  
  .self-evaluation li::before {
    content: "✓";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
  }
  
  .hobbies {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
  }
  
  .hobbies h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 1rem;
  }
  
  .hobbies p {
    font-size: 0.9rem;
  }
  
  /* ===== 页脚 ===== */
  footer {
    text-align: center;
    padding: 15px;
    background-color: var(--secondary-color);
    color: white;
    margin-top: 40px;
    font-size: 0.9rem;
  }
  
  footer p {
    margin: 5px 0;
  }
  
  footer a {
    color: var(--light-color);
    text-decoration: none;
    transition: var(--transition);
  }
  
  footer a:hover {
    color: var(--primary-color);
    text-decoration: underline;
  }
  
  /* ===== 打印样式 ===== */
  @media print {
    body {
      font-size: 12pt;
      line-height: 1.4;
      color: #000;
      background: none;
      padding: 0;
    }
    
    #navbar {
      display: none;
    }
    
    header {
      padding: 30px 20px;
      background: none;
      color: #000;
      margin-bottom: 15px;
    }
  
    .profile-img {
      border-color: #000;
    }
  
    .section {
      page-break-inside: avoid;
      margin-bottom: 15px;
      box-shadow: none;
      border: 1px solid #ddd;
    }
    
    .content {
      display: block !important;
      padding: 15px !important;
    }
    
    footer {
      page-break-after: always;
    }
    
    a {
      text-decoration: none;
      color: #000;
    }
    
    a[href^="http"]:after {
      content: " (" attr(href) ")";
      font-size: 0.8em;
      font-weight: normal;
    }
    
    .contact-info a:after {
      content: none;
    }
  
    #print-btn {
      display: none;
    }
  }
  
  /* ===== 响应式设计 ===== */
  /* 小屏幕 (≤576px) */
  @media (max-width: 576px) {
    #navbar a span {
      display: none;
    }
    
    #navbar a i {
      margin-right: 0;
      font-size: 1.1rem;
    }
    
    .education-item h3 {
      flex-direction: column;
      align-items: flex-start;
    }
    
    .date {
      margin-top: 5px;
    }
    
    .project-header {
      flex-direction: column;
      align-items: flex-start;
    }
    
    .project-date {
      margin-top: 5px;
    }
    
    .contact-info {
      flex-direction: column;
      align-items: center;
      gap: 10px;
    }
  
    .skills-container {
      grid-template-columns: 1fr;
    }
  }
  
  /* 中等屏幕 (≥768px) */
  @media (min-width: 768px) {
    header {
      padding: 80px 20px 40px;
    }
    
    .profile-img {
      width: 150px;
      height: 150px;
    }
    
    header h1 {
      font-size: 2.5rem;
    }
    
    .title {
      font-size: 1.2rem;
    }
    
    .section h2 {
      font-size: 1.3rem;
      padding: 15px 25px;
    }
    
    .content {
      padding: 25px;
    }
    
    #navbar a {
      font-size: 1rem;
      padding: 8px 15px;
    }
    
    #navbar a i {
      font-size: 1rem;
    }
  
    .education-item h3 {
      font-size: 1.1rem;
    }
  
    .project-header h3 {
      font-size: 1.1rem;
    }
  }
  
  /* 大屏幕 (≥992px) */
  @media (min-width: 992px) {
    .container {
      padding: 0 20px;
    }
    
    .skills-container {
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 20px;
    }
  }